
﻿﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/static/include/topLess.jsp"%>

<form name="myForm" method="POST" action="${baseURL}/role/modify">
<input type="hidden" name="id" value="${authorityVo.id}" />
<input type="hidden" name="authorName" value="${authorityVo.authorName}" />
<table>
	<tbody>
		<tr>
			<th><img src="${ctx}/static/images/pages/cen/rig/ico_02.png" align="absmiddle">&nbsp;
			
			修改权限角色
			</th>
		</tr>
		<tr  class="tab_grey">
		<td>
			角色名称：${authorityVo.authorName}
		</td>
		</tr>
	</tbody>
</table>

<table id="listTable">
	<tbody>
		<tr>
			<th width="5%"><input type="checkbox" onclick="selectAll(this.checked);"></th>
				
				<th>权限</th>
				
		</tr>
		<c:forEach var="oneRow" items="${allFuncs}">

			<tr>
			<td><input name="func"
					type="checkbox" id="chk" value="${oneRow.id}" 
					<c:if  test="${oneRow.check==true}">checked</c:if> />
					 </td>
	
				<td align="left" class="tab_td_rig">${oneRow.func}</td>
				
			</tr>
		</c:forEach>
		<tr class="tab_grey">
				<td colspan="7" align="center" valign="middle" class="tab_white">
				<div class="pagination"> 
					<%@ include file="../include/listpage.jsp"%>
				</div>
				<div class="clear"></div>
				</td>
			</tr>	
		
		</tbody>
	</table>
	
	<input name="submit" type="submit" value="保存" class="tab_but"  />
	<input class="tab_but" type="button" value="关闭"
				onclick="closeWin();" />

</form>
<script>

function selectAll(checkAllFlag) {
	var checkArray = document.getElementsByName("func");
	for (var i = 0; i < checkArray.length; i++) {
		checkArray[i].checked = checkAllFlag;
	}
}
</script>

<%@ include file="/static/include/bottom.jsp"%>
